<?php

require_once("includes/database.php");

class HocKy extends database {
	private $maHocKy;
	
	public function __construct($new = false) {
		parent::__construct($new);
		$this->setQuery("SELECT max(HK_MA_SO) as HK_MA_SO FROM HOC_KY");
		$row = mysql_fetch_assoc($this->fetchAll());
		$this->maHocKy = $row['HK_MA_SO'];
	}
	
	public function getMaHocKy() { return $this->maHocKy; }
}

?>